<template>
	<view class="wrap-footer safe-area" 
		:style="'background:' + bgColor + ';'"
	>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			/**
			 * 背景颜色
			 */
			bgColor: {
				type: String,
				default: "transparent",
			},
		}
	}
</script>

<style lang="scss" scoped>
	.wrap-footer {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		z-index: 99;
	}
</style>